package com.project.bean;

import java.time.LocalDate;

public class UserBean {
    private Integer id;
    private String name;
    private String password;
    private LocalDate birthday;
    private Integer money;

    public UserBean(){

    }

    public UserBean(Integer id, String name, String password, LocalDate birthday, Integer money) {
        this.id = id;
        this.name = name;
        this.password = password;
        this.birthday = birthday;
        this.money = money;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public LocalDate getBirthday() {
        return birthday;
    }

    public void setBirthday(LocalDate birthday) {
        this.birthday = birthday;
    }

    public Integer getMoney() {
        return money;
    }

    public void setMoney(Integer money) {
        this.money = money;
    }

    @Override
    public String toString() {
        return "UserBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", password='" + password + '\'' +
                ", birthday=" + birthday +
                ", money=" + money +
                "}\n";
    }
}
